<extend name="./Template/Layout/Layout.html" />
<block name="style">

</block>
<block name="body">
    <div class="J_mainContent" id="content-main" style="width:100%;">

       <div style="margin: 15px;">
          <div class="mb10">
              <a href="{:U('Home/Virtuallayer/addLayer')}" class="layui-btn layui-btn-normal" title="新增图层"> <i class="fa fa-plus"></i> 新增图层</a>
          </div>
          <table class="layui-table" lay-even>
                          <thead>
                              <tr>
                                  <th>虚拟图层名称</th>
                                  <th>虚拟图层上级</th>
                                  <th>默认设置</th>
                                  <th>添加时间</th>
                                  <th>操作</th>
                              </tr>
                          </thead>
                          <tbody>
                          <foreach name="list" item="vo" key="k" >
                             <tr layerid="{$vo.id}">
                                <td>{$vo.layername}</td>
                                 <td>{$vo.upname}</td>
                                 <td>{$vo.defaultshowtext}</td>
                                <td>{$vo.ttime|fdate=###}</td>
                                <td>
                                    <a href="{:U('Home/Virtuallayer/addLayer',array('id'=>$vo['id']))}" class = "flyedit layui-btn layui-btn-sm layui-btn-blue" > <i class = "layui-icon" > &#xe654; </i></a >
                                    <a href="{:U('Home/Virtuallayer/listlayerInfo',array('id'=>$vo['id']))}" class = "flyedit layui-btn layui-btn-sm layui-btn-green" > <i class = "layui-icon" > &#xe649; </i></a >
                                    <a href="javascript:void(0);" class = "flydelete layui-btn layui-btn-sm layui-btn-danger" > <i class = "layui-icon" > &#xe640; </i></a >
                                </td>
                             </tr>
                          </foreach>
                          </tbody>
                        </table>  

                        <div class="layui-table-page mb10">
                            <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
                                {$_page}
                            </div>
                        </div>
       </div>

    </div>
</block>
<block name="script">
    <script>
        var editurl = "{:U('Home/Virtuallayer/addlayer')}";
        var deleteurl = "{:U('Home/Widget/layerdel')}";
    </script>
</block>
